package com.sky.sky_server.service;

import com.sky.sky_pojo.dto.EmployeeDTO;
import com.sky.sky_pojo.entity.Employee;
import com.sky.sky_pojo.entity.EmployeeQueryPage;
import com.sky.sky_pojo.entity.PageResult;

public interface EmployeeService {
    /**
     * 新增员工
     */
    public int save(EmployeeDTO employeeDTO);
    /**
     * 分页查询员工
     */
    public PageResult<Employee> page(EmployeeQueryPage employeeQueryPage);

    /**
     * 修改员工状态
     * @param status
     * @param id
     */
    public int changeStatus(Integer status, Long id);

    /**
     * 根据id查询员工
     * @param id
     * @return
     */
    public Employee getEmployeeById(Long id);

    /**
     * 修改员工信息
     * @param employeeDTO
     * @return
     */
    public int update(EmployeeDTO employeeDTO);
}
